package com.ifonly.render;

import com.ifonly.config.Configuration;

/**
 * @author <a href="mailto:ifonlymaster@163.com">ifonly</a>
 * @version 1.0 2015-12-10 15:00
 * @since JDK 1.6
 */
public abstract class MainRenderFactory {

    protected static String MAIN_EXTENSION;

    public abstract Render getRender(String view);

    public String getExtension() {
        if (MAIN_EXTENSION == null) {
            MAIN_EXTENSION = Configuration.getInstance().getViewExtension();
        }
        return MAIN_EXTENSION;
    }

}
